package com.example.common.consumer.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author wangjinlong
 * @date 2022/2/11 16:20
 */
@Component
@FeignClient(name = "common-provider", fallback = ConsumerServiceImpl.class, path = "api/common/provider")
public interface ConsumerService {
    @GetMapping("get")
    String get();
}
